package com.ruoyi.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.domain.ZhwyHirer;
import com.ruoyi.service.IZhwyHirerService;

/**
 * 租户信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
@Service
public class ZhwyHirerServiceImpl implements IZhwyHirerService 
{
    @Autowired
    private com.ruoyi.mapper.ZhwyHirerMapper zhwyHirerMapper;

    /**
     * 查询租户信息
     * 
     * @param id 租户信息主键
     * @return 租户信息
     */
    @Override
    public ZhwyHirer selectZhwyHirerById(Long id)
    {
        return zhwyHirerMapper.selectZhwyHirerById(id);
    }

    /**
     * 查询租户信息列表
     * 
     * @param zhwyHirer 租户信息
     * @return 租户信息
     */
    @Override
    public List<ZhwyHirer> selectZhwyHirerList(ZhwyHirer zhwyHirer)
    {
        return zhwyHirerMapper.selectZhwyHirerList(zhwyHirer);
    }

    /**
     * 新增租户信息
     * 
     * @param zhwyHirer 租户信息
     * @return 结果
     */
    @Override
    public int insertZhwyHirer(ZhwyHirer zhwyHirer)
    {
        zhwyHirer.setCreateTime(DateUtils.getNowDate());
        return zhwyHirerMapper.insertZhwyHirer(zhwyHirer);
    }

    /**
     * 修改租户信息
     * 
     * @param zhwyHirer 租户信息
     * @return 结果
     */
    @Override
    public int updateZhwyHirer(ZhwyHirer zhwyHirer)
    {
        return zhwyHirerMapper.updateZhwyHirer(zhwyHirer);
    }

    /**
     * 批量删除租户信息
     * 
     * @param ids 需要删除的租户信息主键
     * @return 结果
     */
    @Override
    public int deleteZhwyHirerByIds(Long[] ids)
    {
        return zhwyHirerMapper.deleteZhwyHirerByIds(ids);
    }

    /**
     * 删除租户信息信息
     * 
     * @param id 租户信息主键
     * @return 结果
     */
    @Override
    public int deleteZhwyHirerById(Long id)
    {
        return zhwyHirerMapper.deleteZhwyHirerById(id);
    }
}
